name = "ada lovelace"
# 单词首字母大写
print(name.title())
# 全小写
print(name.lower())
# 全大写
print(name.upper())


first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
message = f"Hello, {full_name.title()}!"
print(message)

print("\tPython")
print("Languages:\nPython\nC\nJavaScript")
print("Languages:\n\tPython\n\tC\n\tJavaScript")

favorite_language = '   python   '
# 删除左边空白
print(favorite_language.rstrip())
# 删除右边空白
print(favorite_language.lstrip())
# 删除两边空白
print(favorite_language.strip())

url = 'https://nostarch.comhttps://'
simple_url = url.removeprefix('https://')

print(url)
print(simple_url)
print('https://nostarch.comhttps://'.removesuffix('https://'))

name = 'Eric'
hello = f'Hello {name.title()}, would you like to learn some Python today?'
print(hello)